from appium.webdriver.common.mobileby import MobileBy
from app_wechat_po.base.base_page import BasePage


class MainPage(BasePage):
    def goto_addresslist(self):
        # 1.进入【通讯录】页面
        self.find_and_click(MobileBy.XPATH, "//*[@text='通讯录']")

        from app_wechat_po.page.address_list_page import AddressListPage
        return AddressListPage(self.driver)
